﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace StrategyMode.Discount
{
    /// <summary>
    /// 百分比打折
    /// </summary>
    class DiscountRebate : DiscountBase
    {
        private double rebate = 1d;
        internal DiscountRebate(double rebate)
        {
            this.rebate = rebate;
        }

        public override double GetResult(double money)
        {
            return money * rebate;
        }
    }
}
